package cn.wolfcode.cms.service;


import cn.wolfcode.cms.domain.Member;
import cn.wolfcode.cms.domain.MemberSpend;
import cn.wolfcode.cms.domain.Membernum;
import cn.wolfcode.cms.query.MemberQueryObject;

import java.util.List;
import java.util.Map;

//部门服务层
public interface IMemberService {
    void save(Member entity);

    void update(Member entity);

    void delete(Long id);

    Member get(Long id);

    List<Member> list();

    //通过参数查询分页数据
    Object query(MemberQueryObject qo);

    //通过id查询会员对象的信息
    List<Member> getMemberByExchangeId(Long id);

    void moveMember(Long memberId, Long groupId);

    List<MemberSpend> getMax();

    int getTotalNum();

    List<Integer> getBrithMenBer();

    Map<String, Object> getMemByKeyInfo(String keyInfo);

    Membernum getRecordBykeyword(String keyword);

    List<Membernum> getMemberInfoByCardNum(String cardnum);

    int getTotalSpend();
}
